package com.dragon.modules.yuegou.entity.member;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.member.ProDiscountRoundingMode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品折扣表实体类<br>
 * 对应的表为：mem_pro_discount<br>
 * 
 * @author pbuilder generated
 * @date 2022-03-09 19:03:27
 * @company sgy
 * @version 2.0
 */
@TableName("mem_pro_discount")
@ApiModel(description = "商品折扣表")
public class ProDiscountEntity {

    /** 商品折扣ID */
	@ApiModelProperty("商品折扣ID")
	protected String id;

    /** 商圈id */
	@ApiModelProperty("商圈id")
	protected String busdId;

    /** 权益名称 */
	@ApiModelProperty("权益名称")
	protected String name;

    /** 权益内容 */
	@ApiModelProperty("权益内容")
	protected String content;

    /** 折扣比率 */
	@ApiModelProperty("折扣比率")
	protected BigDecimal rate;

    /** 平台分摊 */
	@ApiModelProperty("平台分摊")
	protected BigDecimal platformRate;

    /** 商户分摊 */
	@ApiModelProperty("商户分摊")
	protected BigDecimal merchantRate;

    /** 启用状态（1：启用 0：禁用） */
	@ApiModelProperty("启用状态（1：启用 0：禁用）")
	protected Boolean enableStatus;

    /** 保留小数 */
	@ApiModelProperty("保留小数")
	protected Integer accuracy;

    /** [枚举]取整方式：0-向上取整-UP、1-向下取整-DOWN、2-四舍五入-HALF_UP */
	@ApiModelProperty("[枚举]取整方式：0-向上取整-UP、1-向下取整-DOWN、2-四舍五入-HALF_UP")
	protected ProDiscountRoundingMode roundingMode;

    /**  */
	protected LocalDateTime createdTime;

    /**  */
	protected String createdBy;

    /**  */
	protected LocalDateTime modifiedTime;

    /**  */
	protected String modifiedBy;

    /** 删除 0-未删除；1-已删除 */
	@ApiModelProperty("删除 0-未删除；1-已删除")
	protected Boolean del;

    /**  */
	protected LocalDateTime delTime;

    /**  */
	protected String delBy;

	/**
	 * 构造一个空商品折扣表实体对象
	 */
	public ProDiscountEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商品折扣表实体对象
	 * 
	 * @param other 其它对象
	 */
	public ProDiscountEntity(ProDiscountEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.name = other.name;
     	this.content = other.content;
     	this.rate = other.rate;
     	this.platformRate = other.platformRate;
     	this.merchantRate = other.merchantRate;
     	this.enableStatus = other.enableStatus;
     	this.accuracy = other.accuracy;
     	this.roundingMode = other.roundingMode;
     	this.createdTime = other.createdTime;
     	this.createdBy = other.createdBy;
     	this.modifiedTime = other.modifiedTime;
     	this.modifiedBy = other.modifiedBy;
     	this.del = other.del;
     	this.delTime = other.delTime;
     	this.delBy = other.delBy;
	}


	/**
	 * 获取商品折扣ID
	 * 
	 * @return id 商品折扣ID
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置商品折扣ID
	 * 
	 * @param id 商品折扣ID
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈id
	 * 
	 * @return busdId 商圈id
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取权益名称
	 * 
	 * @return name 权益名称
	 */
	public String getName() {
		return name;
	}
  	
	/**
	 * 设置权益名称
	 * 
	 * @param name 权益名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取权益内容
	 * 
	 * @return content 权益内容
	 */
	public String getContent() {
		return content;
	}
  	
	/**
	 * 设置权益内容
	 * 
	 * @param content 权益内容
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * 获取折扣比率
	 * 
	 * @return rate 折扣比率
	 */
	public BigDecimal getRate() {
		return rate;
	}
  	
	/**
	 * 设置折扣比率
	 * 
	 * @param rate 折扣比率
	 */
	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}

	/**
	 * 获取平台分摊
	 * 
	 * @return platformRate 平台分摊
	 */
	public BigDecimal getPlatformRate() {
		return platformRate;
	}
  	
	/**
	 * 设置平台分摊
	 * 
	 * @param platformRate 平台分摊
	 */
	public void setPlatformRate(BigDecimal platformRate) {
		this.platformRate = platformRate;
	}

	/**
	 * 获取商户分摊
	 * 
	 * @return merchantRate 商户分摊
	 */
	public BigDecimal getMerchantRate() {
		return merchantRate;
	}
  	
	/**
	 * 设置商户分摊
	 * 
	 * @param merchantRate 商户分摊
	 */
	public void setMerchantRate(BigDecimal merchantRate) {
		this.merchantRate = merchantRate;
	}

	/**
	 * 获取启用状态（1：启用 0：禁用）
	 * 
	 * @return enableStatus 启用状态（1：启用 0：禁用）
	 */
	public Boolean getEnableStatus() {
		return enableStatus;
	}
  	
	/**
	 * 设置启用状态（1：启用 0：禁用）
	 * 
	 * @param enableStatus 启用状态（1：启用 0：禁用）
	 */
	public void setEnableStatus(Boolean enableStatus) {
		this.enableStatus = enableStatus;
	}

	/**
	 * 获取保留小数
	 * 
	 * @return accuracy 保留小数
	 */
	public Integer getAccuracy() {
		return accuracy;
	}
  	
	/**
	 * 设置保留小数
	 * 
	 * @param accuracy 保留小数
	 */
	public void setAccuracy(Integer accuracy) {
		this.accuracy = accuracy;
	}

	/**
	 * 获取[枚举]取整方式：0-向上取整-UP、1-向下取整-DOWN、2-四舍五入-HALF_UP
	 * 
	 * @return roundingMode [枚举]取整方式：0-向上取整-UP、1-向下取整-DOWN、2-四舍五入-HALF_UP
	 */
	public ProDiscountRoundingMode getRoundingMode() {
		return roundingMode;
	}
  	
	/**
	 * 设置[枚举]取整方式：0-向上取整-UP、1-向下取整-DOWN、2-四舍五入-HALF_UP
	 * 
	 * @param roundingMode [枚举]取整方式：0-向上取整-UP、1-向下取整-DOWN、2-四舍五入-HALF_UP
	 */
	public void setRoundingMode(ProDiscountRoundingMode roundingMode) {
		this.roundingMode = roundingMode;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取
	 * 
	 * @return createdBy 
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdBy 
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedTime 
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedTime 
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedBy 
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedBy 
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取删除 0-未删除；1-已删除
	 * 
	 * @return del 删除 0-未删除；1-已删除
	 */
	public Boolean getDel() {
		return del;
	}
  	
	/**
	 * 设置删除 0-未删除；1-已删除
	 * 
	 * @param del 删除 0-未删除；1-已删除
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}

	/**
	 * 获取
	 * 
	 * @return delTime 
	 */
	public LocalDateTime getDelTime() {
		return delTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delTime 
	 */
	public void setDelTime(LocalDateTime delTime) {
		this.delTime = delTime;
	}

	/**
	 * 获取
	 * 
	 * @return delBy 
	 */
	public String getDelBy() {
		return delBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delBy 
	 */
	public void setDelBy(String delBy) {
		this.delBy = delBy;
	}

    public String toString() {
		return new StringBuilder().append("ProDiscountEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",name=").append(name).
			append(",content=").append(content).
			append(",rate=").append(rate).
			append(",platformRate=").append(platformRate).
			append(",merchantRate=").append(merchantRate).
			append(",enableStatus=").append(enableStatus).
			append(",accuracy=").append(accuracy).
			append(",roundingMode=").append(roundingMode).
			append(",createdTime=").append(createdTime).
			append(",createdBy=").append(createdBy).
			append(",modifiedTime=").append(modifiedTime).
			append(",modifiedBy=").append(modifiedBy).
			append(",del=").append(del).
			append(",delTime=").append(delTime).
			append(",delBy=").append(delBy).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public ProDiscountEntity copy() {
		return new ProDiscountEntity(this);
	}

    /** 商品折扣ID */
	public static final String COL_ID = "id";

    /** 商圈id */
	public static final String COL_BUSD_ID = "busd_id";

    /** 权益名称 */
	public static final String COL_NAME = "name";

    /** 权益内容 */
	public static final String COL_CONTENT = "content";

    /** 折扣比率 */
	public static final String COL_RATE = "rate";

    /** 平台分摊 */
	public static final String COL_PLATFORM_RATE = "platform_rate";

    /** 商户分摊 */
	public static final String COL_MERCHANT_RATE = "merchant_rate";

    /** 启用状态（1：启用 0：禁用） */
	public static final String COL_ENABLE_STATUS = "enable_status";

    /** 保留小数 */
	public static final String COL_ACCURACY = "accuracy";

    /** [枚举]取整方式：0-向上取整-UP、1-向下取整-DOWN、2-四舍五入-HALF_UP */
	public static final String COL_ROUNDING_MODE = "rounding_mode";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";

    /**  */
	public static final String COL_CREATED_BY = "created_by";

    /**  */
	public static final String COL_MODIFIED_TIME = "modified_time";

    /**  */
	public static final String COL_MODIFIED_BY = "modified_by";

    /** 删除 0-未删除；1-已删除 */
	public static final String COL_DEL = "del";

    /**  */
	public static final String COL_DEL_TIME = "del_time";

    /**  */
	public static final String COL_DEL_BY = "del_by";
}
